package com.leyou.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * sku表,该表表示具体的商品实体,如黑色的 64g的iphone 8
 * 
 * @author Daifeng
 * @email 2661184062@qq.com
 * @date 2020-12-25 16:44:47
 */
@Data
public class SkuVo implements Serializable {

	private Long id;

	private Long spuId;
	/**
	 * 商品标题
	 */
	private String title;
	/**
	 * 商品的图片，多个图片以‘,’分割
	 */
	private String images;
	/**
	 * 销售价格，单位为分
	 */
	private BigDecimal price;
	/**
	 * 特有规格属性在spu属性模板中的对应下标组合
	 */
	private String indexes;
	/**
	 * sku的特有规格参数键值对，json格式，反序列化时请使用linkedHashMap，保证有序
	 */
	private String ownSpec;
	/**
	 * 是否有效，0无效，1有效
	 */
	private Integer enable;

	/**
	 * 库存
	 * @return
	 */
	private Integer stock;


	public Long getSpuId() {
		return spuId;
	}

	public void setSpuId(Long spuId) {
		this.spuId = spuId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getIndexes() {
		return indexes;
	}

	public void setIndexes(String indexes) {
		this.indexes = indexes;
	}

	public String getOwnSpec() {
		return ownSpec;
	}

	public void setOwnSpec(String ownSpec) {
		this.ownSpec = ownSpec;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}
}
